<?
include("conn.php");

ini_set('date.timezone','Asia/Shanghai');
$now = date('Y-m-d H:i:s',time());

if( $_POST[message] != null ) {
	
	$sql_str = "INSERT INTO message VALUES( REPLACE(UUID(),'-','') , '$_POST[message]' , '$now' , 1 )";
	$result = mysql_query($sql_str);
	
}
header("Location:index.php");
?>
